{% extends 'index.html' %}
{% block main-content %}
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">{{kaoqin_obj.stuname}}的考勤详细信息</h3>
        </div>
    </div>
    <form action="" method="post" class="col-md-9 col-md-offset-1">
        <p>姓名:
            <input type="text" name="stuname" class="form-control" value="{{ kaoqin_obj.stuname }}" disabled>
        </p>
        <p>学号:
            <input type="text" name="stunum" class="form-control" value="{{ kaoqin_obj.stunum }}" disabled>
        </p>
        <p>当前座位号数:
            <input type="text" name="seatnum" class="form-control" value="{{ kaoqin_obj.seatnum}}" disabled>
        </p>
            <p>当前座位坐标:
            <input type="text" name="seatcoordinates" class="form-control" value="{{ kaoqin_obj.seatcoordinates}}" disabled>
        </p>
            <p>课室:
            <input type="text" name="classid" class="form-control" value="{{ kaoqin_obj.classid}}" disabled>
        </p>
            <p>签到时间:
            <input type="text" name="attendancetime" class="form-control" value="{{ kaoqin_obj.attendancetime}}" disabled>
        </p>
        <p>考勤情况:
                <select name="statue" id="" class="form-control">
                    {% for kaoqin02_obj in kaoqin_queryset %}
                        {% if kaoqin_obj.attendanceresult == kaoqin02_obj %}
                            <option value="{{ kaoqin02_obj.attendanceresult }}" selected>{{ kaoqin02_obj.attendanceresult }}</option>
                        {% else %}
                            <option value="{{ kaoqin02_obj.attendanceresult }}">{{ kaoqin02_obj.attendanceresult }}</option>
                        {% endif %}
                    {% endfor %}
                </select>
        </p>
        <br>
            <input type="submit" value="编辑" class="form-control btn btn-primary col-md-2" style="width: 500px;left: 220px">
    </form>
{% endblock %}